package org.example.domain;

import org.optaplanner.core.api.domain.entity.PlanningEntity;
import org.optaplanner.core.api.domain.variable.PlanningVariable;

@PlanningEntity
public class CuttingSpot {
    private RectangularPiece piece;
    
    @PlanningVariable(valueRangeProviderRefs = "stockRange")
    private RectangularPiece stock;
    
    @PlanningVariable(valueRangeProviderRefs = "xPositionRange")
    private Integer x;
    
    @PlanningVariable(valueRangeProviderRefs = "yPositionRange")
    private Integer y;

    public CuttingSpot() {
    }

    public CuttingSpot(RectangularPiece piece) {
        this.piece = piece;
    }

    public RectangularPiece getPiece() {
        return piece;
    }

    public void setPiece(RectangularPiece piece) {
        this.piece = piece;
    }

    public RectangularPiece getStock() {
        return stock;
    }

    public void setStock(RectangularPiece stock) {
        this.stock = stock;
    }

    public Integer getX() {
        return x;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public Integer getY() {
        return y;
    }

    public void setY(Integer y) {
        this.y = y;
    }
} 